package com.yimi.yinhepda.entity.bean;

import android.support.annotation.NonNull;

import com.yimi.yinhepda.entity.response.DispatchScanResponse;

import java.util.List;

/**
 * @author: lj
 * Date: 2019/9/17 13:37
 * Description:配送运单实体
 */
public class DispatchEntity  implements Comparable<DispatchEntity>{

    /**
     * soonId : 6579536310200225792
     * waybillNo : 115002852821
     * goodsNo : 563B550A091711
     * sourceZoneCode : 563B
     * destZoneCode : 550A
     * consigneeDetailAddress : 天长市滨辉中学
     * consigneeAddress : 安徽省,滁州市,天长市,城南街道
     * consigneeName : 小米
     * consigneeCode : YHMLSAUW
     * consigneeMobile : 18812341234
     * dispatchStatus : 0
     * paymentTypeCode : 1
     * settlementTypeCode : 2
     * businessType : 1
     * bizTypeCode : 1
     * serviceTypeCode : 1
     * productType : CP02
     * pickDispatchType : 2
     * inputTime : 2019-09-17T01:28:03Z
     * waybillType : 1
     * dispatchBigAreaCode : AH550A
     * dispatchAreaCode : 550A
     * storeTime : 2019-09-17T01:30:44Z
     * optionStatus : 0
     * inventoryStatus : 1
     * mobileNoticeTimes : 0
     * msgNoticeTimes : 0
     * subscribeTimeType : 6
     * subscribeTime : 2019-09-17T01:30:57Z
     * taskNo : PS19091700001
     * creater : 600217@anhuisheng
     * createrTime : 2019-09-17T01:28:18Z
     * modifier : system@yimidida
     * modifierTime : 2019-09-17T01:41:01Z
     * compCode : anhuisheng
     * latestTime : 2019-09-17T01:41:01Z
     * recordVersion : 3
     * isDelete : 0
     * userIp : 127001
     * serverIp : 127001
     * taskScanQuantity : 0
     * superiorConsigneeMobile : 18812341234
     * waitNoticeStatus : 0
     * superiorConsigneeName : 小米
     * sendMobile : 15512341234
     * sendName : 小米
     * waybillStatus : 3
     * sourceCompCode : anhuisheng
     * isForward : 0
     * dispatchWaybillStatus : 0
     * storeQuantity : 11
     * column6 : 2821
     * installCarTime : 2019-09-17T01:41:00Z
     * sourceCompName : [anhuisheng]安徽壹米滴答
     * compName : [anhuisheng]安徽壹米滴答
     * packageName : 编织袋
     * goodsCode : 20
     * goodsName : 大件零担
     * quantity : 11
     * volume : 1.0
     * realWeightQty : 1.0
     * meterageWeightQty : 250.0
     * waybillRemark : 包装:编织袋;
     * waybillRecordVersion : 0
     * routeCode : 563B-563W-252W-514W-550A
     * isSubscribeName : 是
     * senderEmpCode : KYSAH00000012
     * senderName : 小米
     * sendTime : 2019-09-17T01:28:03Z
     * cardNo : xm15512341234563B
     * isSingBack : false
     * optionStatusName : 未分派
     * toCompCode : anhuisheng
     * consigneeAddressInfo : 安徽省滁州市天长市城南街道天长市滨辉中学
     * dispatchAreaTypesName : 油车派送
     * expressFee : 92.0
     * totalFreight : 113.5
     * paymentAmount : 113.5
     * yingshouheji : 0.0
     * insuranceFee : 1000.0
     * insuranceAgentFee : 1.0
     * insuranceGoodsType : 1
     * totalDeliverFee : 20.0
     * deliverFee : 20.0
     * smsFee : 0.5
     * other1Fee : 0
     * other2Fee : 0
     * other3Fee : 0
     * insuranceGoodsTypeName : 普货
     * destZoneName : [550A]安徽天长营业部
     * sourceZoneName : [563B]宣城一营业部
     * serviceTypeCodeName : 港到门
     * paymentTypeCodeName : 寄付
     * settlementTypeCodeName : 月结
     * businessTypeName : 企业内
     * bizTypeCodeName : 省内件
     * productTypeName : 标准快运
     * waybillTypeName : 正常单
     * packageNameN : 编织袋
     * inventoryStatusName : 全部在库
     * dispatchBigAreaName : [AH550A]安徽天长营业部大区
     * dispatchAreaName : [550A]安徽天长营业部
     * msgNoticeStatus : 未发送
     * mobileNoticeStatus : 未通知
     * isSignBackName : 否
     * subscribeTimeName : 16:00~18:00
     * pickDispatchTypeName : 派送
     * waybillStatusName : 已到达
     * cityCode : 341100
     * countyCode : 341181
     * isBigGoods : 0
     * dataSourceType : 1
     * province : 安徽省
     * city : 滁州市
     * county : 天长市
     * township : 城南街道
     * index : 0
     * autoNums : 0
     * abType : 1
     */

    private String soonId;
    private long waybillNo;
    private String goodsNo;
    private String sourceZoneCode;
    private String destZoneCode;
    private String consigneeDetailAddress;
    private String consigneeAddress;
    private String consigneeName;
    private String consigneeCode;
    private String consigneeMobile;
    private int dispatchStatus;
    private int paymentTypeCode;
    private int settlementTypeCode;
    private int businessType;
    private int bizTypeCode;
    private int serviceTypeCode;
    private String productType;
    private int pickDispatchType;
    private String inputTime;
    private int waybillType;
    private String dispatchBigAreaCode;
    private String dispatchAreaCode;
    private String storeTime;
    private int optionStatus;
    private int inventoryStatus;
    private int mobileNoticeTimes;
    private int msgNoticeTimes;
    private int subscribeTimeType;
    private String subscribeTime;
    private String taskNo;
    private String creater;
    private String createrTime;
    private String modifier;
    private String modifierTime;
    private String compCode;
    private String latestTime;
    private int recordVersion;
    private int isDelete;
    private String userIp;
    private String serverIp;
    private int taskScanQuantity;
    private String superiorConsigneeMobile;
    private int waitNoticeStatus;
    private String superiorConsigneeName;
    private String sendMobile;
    private String sendName;
    private int waybillStatus;
    private String sourceCompCode;
    private int isForward;
    private int dispatchWaybillStatus;
    private int storeQuantity;
    private String column6;
    private String installCarTime;
    private String sourceCompName;
    private String compName;
    private String packageName;
    private String goodsCode;
    private String goodsName;
    private int quantity;
    private double volume;
    private double realWeightQty;
    private double meterageWeightQty;
    private String waybillRemark;
    private int waybillRecordVersion;
    private String routeCode;
    private String isSubscribeName;
    private String senderEmpCode;
    private String senderName;
    private String sendTime;
    private String cardNo;
    private boolean isSingBack;
    private String optionStatusName;
    private String toCompCode;
    private String consigneeAddressInfo;
    private String dispatchAreaTypesName;
    private double expressFee;
    private double totalFreight;
    private double paymentAmount;
    private double yingshouheji;
    private double insuranceFee;
    private double insuranceAgentFee;
    private String insuranceGoodsType;
    private double totalDeliverFee;
    private double deliverFee;
    private double smsFee;
    private int other1Fee;
    private int other2Fee;
    private int other3Fee;
    private String insuranceGoodsTypeName;
    private String destZoneName;
    private String sourceZoneName;
    private String serviceTypeCodeName;
    private String paymentTypeCodeName;
    private String settlementTypeCodeName;
    private String businessTypeName;
    private String bizTypeCodeName;
    private String productTypeName;
    private String waybillTypeName;
    private String packageNameN;
    private String inventoryStatusName;
    private String dispatchBigAreaName;
    private String dispatchAreaName;
    private String msgNoticeStatus;
    private String mobileNoticeStatus;
    private String isSignBackName;
    private String subscribeTimeName;
    private String pickDispatchTypeName;
    private String waybillStatusName;
    private String cityCode;
    private String countyCode;
    private int isBigGoods;
    private int dataSourceType;
    private String province;
    private String city;
    private String county;
    private String township;
    private int index;
    private int autoNums;
    private String abType;
    private List<DispatchScanResponse.DispatchWaybillChild> childList;

    public List<DispatchScanResponse.DispatchWaybillChild> getChildList() {
        return childList;
    }

    public void setChildList(List<DispatchScanResponse.DispatchWaybillChild> childList) {
        this.childList = childList;
    }

    public String getSoonId() {
        return soonId;
    }

    public void setSoonId(String soonId) {
        this.soonId = soonId;
    }

    public long getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(long waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getSourceZoneCode() {
        return sourceZoneCode;
    }

    public void setSourceZoneCode(String sourceZoneCode) {
        this.sourceZoneCode = sourceZoneCode;
    }

    public String getDestZoneCode() {
        return destZoneCode;
    }

    public void setDestZoneCode(String destZoneCode) {
        this.destZoneCode = destZoneCode;
    }

    public String getConsigneeDetailAddress() {
        return consigneeDetailAddress;
    }

    public void setConsigneeDetailAddress(String consigneeDetailAddress) {
        this.consigneeDetailAddress = consigneeDetailAddress;
    }

    public String getConsigneeAddress() {
        return consigneeAddress;
    }

    public void setConsigneeAddress(String consigneeAddress) {
        this.consigneeAddress = consigneeAddress;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneeCode() {
        return consigneeCode;
    }

    public void setConsigneeCode(String consigneeCode) {
        this.consigneeCode = consigneeCode;
    }

    public String getConsigneeMobile() {
        return consigneeMobile;
    }

    public void setConsigneeMobile(String consigneeMobile) {
        this.consigneeMobile = consigneeMobile;
    }

    public int getDispatchStatus() {
        return dispatchStatus;
    }

    public void setDispatchStatus(int dispatchStatus) {
        this.dispatchStatus = dispatchStatus;
    }

    public int getPaymentTypeCode() {
        return paymentTypeCode;
    }

    public void setPaymentTypeCode(int paymentTypeCode) {
        this.paymentTypeCode = paymentTypeCode;
    }

    public int getSettlementTypeCode() {
        return settlementTypeCode;
    }

    public void setSettlementTypeCode(int settlementTypeCode) {
        this.settlementTypeCode = settlementTypeCode;
    }

    public int getBusinessType() {
        return businessType;
    }

    public void setBusinessType(int businessType) {
        this.businessType = businessType;
    }

    public int getBizTypeCode() {
        return bizTypeCode;
    }

    public void setBizTypeCode(int bizTypeCode) {
        this.bizTypeCode = bizTypeCode;
    }

    public int getServiceTypeCode() {
        return serviceTypeCode;
    }

    public void setServiceTypeCode(int serviceTypeCode) {
        this.serviceTypeCode = serviceTypeCode;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public int getPickDispatchType() {
        return pickDispatchType;
    }

    public void setPickDispatchType(int pickDispatchType) {
        this.pickDispatchType = pickDispatchType;
    }

    public String getInputTime() {
        return inputTime;
    }

    public void setInputTime(String inputTime) {
        this.inputTime = inputTime;
    }

    public int getWaybillType() {
        return waybillType;
    }

    public void setWaybillType(int waybillType) {
        this.waybillType = waybillType;
    }

    public String getDispatchBigAreaCode() {
        return dispatchBigAreaCode;
    }

    public void setDispatchBigAreaCode(String dispatchBigAreaCode) {
        this.dispatchBigAreaCode = dispatchBigAreaCode;
    }

    public String getDispatchAreaCode() {
        return dispatchAreaCode;
    }

    public void setDispatchAreaCode(String dispatchAreaCode) {
        this.dispatchAreaCode = dispatchAreaCode;
    }

    public String getStoreTime() {
        return storeTime;
    }

    public void setStoreTime(String storeTime) {
        this.storeTime = storeTime;
    }

    public int getOptionStatus() {
        return optionStatus;
    }

    public void setOptionStatus(int optionStatus) {
        this.optionStatus = optionStatus;
    }

    public int getInventoryStatus() {
        return inventoryStatus;
    }

    public void setInventoryStatus(int inventoryStatus) {
        this.inventoryStatus = inventoryStatus;
    }

    public int getMobileNoticeTimes() {
        return mobileNoticeTimes;
    }

    public void setMobileNoticeTimes(int mobileNoticeTimes) {
        this.mobileNoticeTimes = mobileNoticeTimes;
    }

    public int getMsgNoticeTimes() {
        return msgNoticeTimes;
    }

    public void setMsgNoticeTimes(int msgNoticeTimes) {
        this.msgNoticeTimes = msgNoticeTimes;
    }

    public int getSubscribeTimeType() {
        return subscribeTimeType;
    }

    public void setSubscribeTimeType(int subscribeTimeType) {
        this.subscribeTimeType = subscribeTimeType;
    }

    public String getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(String subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getCreaterTime() {
        return createrTime;
    }

    public void setCreaterTime(String createrTime) {
        this.createrTime = createrTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getModifierTime() {
        return modifierTime;
    }

    public void setModifierTime(String modifierTime) {
        this.modifierTime = modifierTime;
    }

    public String getCompCode() {
        return compCode;
    }

    public void setCompCode(String compCode) {
        this.compCode = compCode;
    }

    public String getLatestTime() {
        return latestTime;
    }

    public void setLatestTime(String latestTime) {
        this.latestTime = latestTime;
    }

    public int getRecordVersion() {
        return recordVersion;
    }

    public void setRecordVersion(int recordVersion) {
        this.recordVersion = recordVersion;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public int getTaskScanQuantity() {
        return taskScanQuantity;
    }

    public void setTaskScanQuantity(int taskScanQuantity) {
        this.taskScanQuantity = taskScanQuantity;
    }

    public String getSuperiorConsigneeMobile() {
        return superiorConsigneeMobile;
    }

    public void setSuperiorConsigneeMobile(String superiorConsigneeMobile) {
        this.superiorConsigneeMobile = superiorConsigneeMobile;
    }

    public int getWaitNoticeStatus() {
        return waitNoticeStatus;
    }

    public void setWaitNoticeStatus(int waitNoticeStatus) {
        this.waitNoticeStatus = waitNoticeStatus;
    }

    public String getSuperiorConsigneeName() {
        return superiorConsigneeName;
    }

    public void setSuperiorConsigneeName(String superiorConsigneeName) {
        this.superiorConsigneeName = superiorConsigneeName;
    }

    public String getSendMobile() {
        return sendMobile;
    }

    public void setSendMobile(String sendMobile) {
        this.sendMobile = sendMobile;
    }

    public String getSendName() {
        return sendName;
    }

    public void setSendName(String sendName) {
        this.sendName = sendName;
    }

    public int getWaybillStatus() {
        return waybillStatus;
    }

    public void setWaybillStatus(int waybillStatus) {
        this.waybillStatus = waybillStatus;
    }

    public String getSourceCompCode() {
        return sourceCompCode;
    }

    public void setSourceCompCode(String sourceCompCode) {
        this.sourceCompCode = sourceCompCode;
    }

    public int getIsForward() {
        return isForward;
    }

    public void setIsForward(int isForward) {
        this.isForward = isForward;
    }

    public int getDispatchWaybillStatus() {
        return dispatchWaybillStatus;
    }

    public void setDispatchWaybillStatus(int dispatchWaybillStatus) {
        this.dispatchWaybillStatus = dispatchWaybillStatus;
    }

    public int getStoreQuantity() {
        return storeQuantity;
    }

    public void setStoreQuantity(int storeQuantity) {
        this.storeQuantity = storeQuantity;
    }

    public String getColumn6() {
        return column6;
    }

    public void setColumn6(String column6) {
        this.column6 = column6;
    }

    public String getInstallCarTime() {
        return installCarTime;
    }

    public void setInstallCarTime(String installCarTime) {
        this.installCarTime = installCarTime;
    }

    public String getSourceCompName() {
        return sourceCompName;
    }

    public void setSourceCompName(String sourceCompName) {
        this.sourceCompName = sourceCompName;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }

    public double getRealWeightQty() {
        return realWeightQty;
    }

    public void setRealWeightQty(double realWeightQty) {
        this.realWeightQty = realWeightQty;
    }

    public double getMeterageWeightQty() {
        return meterageWeightQty;
    }

    public void setMeterageWeightQty(double meterageWeightQty) {
        this.meterageWeightQty = meterageWeightQty;
    }

    public String getWaybillRemark() {
        return waybillRemark;
    }

    public void setWaybillRemark(String waybillRemark) {
        this.waybillRemark = waybillRemark;
    }

    public int getWaybillRecordVersion() {
        return waybillRecordVersion;
    }

    public void setWaybillRecordVersion(int waybillRecordVersion) {
        this.waybillRecordVersion = waybillRecordVersion;
    }

    public String getRouteCode() {
        return routeCode;
    }

    public void setRouteCode(String routeCode) {
        this.routeCode = routeCode;
    }

    public String getIsSubscribeName() {
        return isSubscribeName;
    }

    public void setIsSubscribeName(String isSubscribeName) {
        this.isSubscribeName = isSubscribeName;
    }

    public String getSenderEmpCode() {
        return senderEmpCode;
    }

    public void setSenderEmpCode(String senderEmpCode) {
        this.senderEmpCode = senderEmpCode;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public boolean isIsSingBack() {
        return isSingBack;
    }

    public void setIsSingBack(boolean isSingBack) {
        this.isSingBack = isSingBack;
    }

    public String getOptionStatusName() {
        return optionStatusName;
    }

    public void setOptionStatusName(String optionStatusName) {
        this.optionStatusName = optionStatusName;
    }

    public String getToCompCode() {
        return toCompCode;
    }

    public void setToCompCode(String toCompCode) {
        this.toCompCode = toCompCode;
    }

    public String getConsigneeAddressInfo() {
        return consigneeAddressInfo;
    }

    public void setConsigneeAddressInfo(String consigneeAddressInfo) {
        this.consigneeAddressInfo = consigneeAddressInfo;
    }

    public String getDispatchAreaTypesName() {
        return dispatchAreaTypesName;
    }

    public void setDispatchAreaTypesName(String dispatchAreaTypesName) {
        this.dispatchAreaTypesName = dispatchAreaTypesName;
    }

    public double getExpressFee() {
        return expressFee;
    }

    public void setExpressFee(double expressFee) {
        this.expressFee = expressFee;
    }

    public double getTotalFreight() {
        return totalFreight;
    }

    public void setTotalFreight(double totalFreight) {
        this.totalFreight = totalFreight;
    }

    public double getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(double paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public double getYingshouheji() {
        return yingshouheji;
    }

    public void setYingshouheji(double yingshouheji) {
        this.yingshouheji = yingshouheji;
    }

    public double getInsuranceFee() {
        return insuranceFee;
    }

    public void setInsuranceFee(double insuranceFee) {
        this.insuranceFee = insuranceFee;
    }

    public double getInsuranceAgentFee() {
        return insuranceAgentFee;
    }

    public void setInsuranceAgentFee(double insuranceAgentFee) {
        this.insuranceAgentFee = insuranceAgentFee;
    }

    public String getInsuranceGoodsType() {
        return insuranceGoodsType;
    }

    public void setInsuranceGoodsType(String insuranceGoodsType) {
        this.insuranceGoodsType = insuranceGoodsType;
    }

    public double getTotalDeliverFee() {
        return totalDeliverFee;
    }

    public void setTotalDeliverFee(double totalDeliverFee) {
        this.totalDeliverFee = totalDeliverFee;
    }

    public double getDeliverFee() {
        return deliverFee;
    }

    public void setDeliverFee(double deliverFee) {
        this.deliverFee = deliverFee;
    }

    public double getSmsFee() {
        return smsFee;
    }

    public void setSmsFee(double smsFee) {
        this.smsFee = smsFee;
    }

    public int getOther1Fee() {
        return other1Fee;
    }

    public void setOther1Fee(int other1Fee) {
        this.other1Fee = other1Fee;
    }

    public int getOther2Fee() {
        return other2Fee;
    }

    public void setOther2Fee(int other2Fee) {
        this.other2Fee = other2Fee;
    }

    public int getOther3Fee() {
        return other3Fee;
    }

    public void setOther3Fee(int other3Fee) {
        this.other3Fee = other3Fee;
    }

    public String getInsuranceGoodsTypeName() {
        return insuranceGoodsTypeName;
    }

    public void setInsuranceGoodsTypeName(String insuranceGoodsTypeName) {
        this.insuranceGoodsTypeName = insuranceGoodsTypeName;
    }

    public String getDestZoneName() {
        return destZoneName;
    }

    public void setDestZoneName(String destZoneName) {
        this.destZoneName = destZoneName;
    }

    public String getSourceZoneName() {
        return sourceZoneName;
    }

    public void setSourceZoneName(String sourceZoneName) {
        this.sourceZoneName = sourceZoneName;
    }

    public String getServiceTypeCodeName() {
        return serviceTypeCodeName;
    }

    public void setServiceTypeCodeName(String serviceTypeCodeName) {
        this.serviceTypeCodeName = serviceTypeCodeName;
    }

    public String getPaymentTypeCodeName() {
        return paymentTypeCodeName;
    }

    public void setPaymentTypeCodeName(String paymentTypeCodeName) {
        this.paymentTypeCodeName = paymentTypeCodeName;
    }

    public String getSettlementTypeCodeName() {
        return settlementTypeCodeName;
    }

    public void setSettlementTypeCodeName(String settlementTypeCodeName) {
        this.settlementTypeCodeName = settlementTypeCodeName;
    }

    public String getBusinessTypeName() {
        return businessTypeName;
    }

    public void setBusinessTypeName(String businessTypeName) {
        this.businessTypeName = businessTypeName;
    }

    public String getBizTypeCodeName() {
        return bizTypeCodeName;
    }

    public void setBizTypeCodeName(String bizTypeCodeName) {
        this.bizTypeCodeName = bizTypeCodeName;
    }

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public String getWaybillTypeName() {
        return waybillTypeName;
    }

    public void setWaybillTypeName(String waybillTypeName) {
        this.waybillTypeName = waybillTypeName;
    }

    public String getPackageNameN() {
        return packageNameN;
    }

    public void setPackageNameN(String packageNameN) {
        this.packageNameN = packageNameN;
    }

    public String getInventoryStatusName() {
        return inventoryStatusName;
    }

    public void setInventoryStatusName(String inventoryStatusName) {
        this.inventoryStatusName = inventoryStatusName;
    }

    public String getDispatchBigAreaName() {
        return dispatchBigAreaName;
    }

    public void setDispatchBigAreaName(String dispatchBigAreaName) {
        this.dispatchBigAreaName = dispatchBigAreaName;
    }

    public String getDispatchAreaName() {
        return dispatchAreaName;
    }

    public void setDispatchAreaName(String dispatchAreaName) {
        this.dispatchAreaName = dispatchAreaName;
    }

    public String getMsgNoticeStatus() {
        return msgNoticeStatus;
    }

    public void setMsgNoticeStatus(String msgNoticeStatus) {
        this.msgNoticeStatus = msgNoticeStatus;
    }

    public String getMobileNoticeStatus() {
        return mobileNoticeStatus;
    }

    public void setMobileNoticeStatus(String mobileNoticeStatus) {
        this.mobileNoticeStatus = mobileNoticeStatus;
    }

    public String getIsSignBackName() {
        return isSignBackName;
    }

    public void setIsSignBackName(String isSignBackName) {
        this.isSignBackName = isSignBackName;
    }

    public String getSubscribeTimeName() {
        return subscribeTimeName;
    }

    public void setSubscribeTimeName(String subscribeTimeName) {
        this.subscribeTimeName = subscribeTimeName;
    }

    public String getPickDispatchTypeName() {
        return pickDispatchTypeName;
    }

    public void setPickDispatchTypeName(String pickDispatchTypeName) {
        this.pickDispatchTypeName = pickDispatchTypeName;
    }

    public String getWaybillStatusName() {
        return waybillStatusName;
    }

    public void setWaybillStatusName(String waybillStatusName) {
        this.waybillStatusName = waybillStatusName;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCountyCode() {
        return countyCode;
    }

    public void setCountyCode(String countyCode) {
        this.countyCode = countyCode;
    }

    public int getIsBigGoods() {
        return isBigGoods;
    }

    public void setIsBigGoods(int isBigGoods) {
        this.isBigGoods = isBigGoods;
    }

    public int getDataSourceType() {
        return dataSourceType;
    }

    public void setDataSourceType(int dataSourceType) {
        this.dataSourceType = dataSourceType;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getTownship() {
        return township;
    }

    public void setTownship(String township) {
        this.township = township;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getAutoNums() {
        return autoNums;
    }

    public void setAutoNums(int autoNums) {
        this.autoNums = autoNums;
    }

    public String getAbType() {
        return abType;
    }

    public void setAbType(String abType) {
        this.abType = abType;
    }

    @Override
    public int compareTo(@NonNull DispatchEntity o) {
        return 0;
    }

    /**
     * 获得已扫数量
     */
    public int getScanCount() {
        if (childList == null || childList.size() == 0) {
            return 0;
        }
        int count = 0;
        for (DispatchScanResponse.DispatchWaybillChild item : childList) {
            if (item.getFlag() == 1) {
                count++;
            }
        }
        return count;
    }

    /**
     * 差异=扫描-开单
     */
    public int getDifference() {
        return getScanCount() - quantity;
    }

    public int getType() {
        int dif = getDifference();
        if (getScanCount() == 0) {
            //白色
            return 1;
        } else if (dif < 0) {
            //红色
            return 0;
        } else if (dif > 0) {
            //黄色
            return 2;
        } else {
            //绿色
            return 3;
        }
    }
}
